package com.tbit.main.service.impl;

import com.tbit.main.dao.core.WorkTypeObjectDao;
import com.tbit.main.pojo.WorkTypeObject;
import com.tbit.main.service.WorkTypeObjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2021-09-08 20:23
 */
@Service("workTypeObjectService")
public class WorkTypeObjectServiceImpl implements WorkTypeObjectService {

    @Autowired
    private WorkTypeObjectDao workTypeObjectDao;

    @Override
    public List<WorkTypeObject> getByAccountId(Integer accountId) {
        return workTypeObjectDao.getByAccountId(accountId);
    }

    @Override
    public void add(WorkTypeObject workTypeObject) {
        workTypeObjectDao.add(workTypeObject);
    }

    @Override
    public void del(Integer workType) {
        workTypeObjectDao.del(workType);
    }

    @Override
    public WorkTypeObject getWorkType(Integer workType) {
        return workTypeObjectDao.getWorkType(workType);
    }

    @Override
    public void update(WorkTypeObject workTypeObject) {
        workTypeObjectDao.update(workTypeObject);
    }
}
